/*
 * log.h
 *
 *  Created on: 2014-7-2
 *      Author: ztp
 */

#ifndef LOG_H_
#define LOG_H_

#define LOG_USE_FILE

#ifdef LOG_USE_FILE
	void log_start();
	void log_stop();
	void log_write(char * format, ...);
#else
	#define log_start()	do{}while(0)
	#define log_stop()		do{}while(0)
	#define log_write(FORMAT, args...) printf("%s: %d: "FORMAT"\n",__FUNCTION__,__LINE__, ##args)
#endif

#endif /* LOG_H_ */
